package com.zw.cloud.common.config.json.format;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;



@Configuration
@ConditionalOnExpression("${com.zw.cloud.default.local-date-time.format.enable:true}")
@Slf4j
public class JsonFormatAutoConfig {

    @Configuration
    @Import(JsonFormatConfig.class)
    public static class JsonFormatConfiguration {
        static {
            // 使用 static 提前初始化
            log.info("[JsonFormatConfiguration] Import JsonFormatConfig");
        }
    }
}
